<!DOCTYPE html>
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
<!--[if !IE]><!-->
<html lang="en">
<!--<![endif]-->
	<head>
		<?php $this->load->view($cfg['tpl'].'public/meta')?>
	</head>

	<!-- body classes: 
			"boxed": boxed layout mode e.g. <body class="boxed">
			"pattern-1 ... pattern-9": background patterns for boxed layout mode e.g. <body class="boxed pattern-1"> 
	-->
	<body>
		<!-- scrollToTop -->
		<!-- ================ -->
		<div class="scrollToTop"><i class="icon-up-open-big"></i></div>

		<!-- page wrapper start -->
		<!-- ================ -->
		<div class="page-wrapper">

			<?php $this->load->view($cfg['tpl'].'public/header')?>
			
			<!-- banner start -->
			<!-- ================ -->
			<div class="banner">
				<div class="fixed-image" style="background-image:url('<?=base_url($cfg['tpl'].'images/banner.jpg')?>');"></div>
			</div>
			<!-- banner end -->

			<!-- page-intro start-->
			<!-- ================ -->
			<div class="page-intro">
				<div class="container">
					<div class="row">
						<div class="col-md-12">
							<ol class="breadcrumb">
								<li><i class="fa fa-home pr-10"></i><a href="<?=site_url('cn')?>">首页</a></li>
								<li class="active"><?=$catename?></li>
							</ol>
						</div>
					</div>
				</div>
			</div>
			<!-- page-intro end -->

			<!-- main-container start -->
			<!-- ================ -->
			<section class="main-container">

				<div class="container">
					<div class="row">

						<!-- main start -->
						<!-- ================ -->
						<div class="main col-md-12">
							
							<!-- isotope filters start -->
							<div class="filters">
								<ul class="nav nav-pills">
									<?php foreach ($pcate as $k => $v) {?>
									<li <?php if ($v['cateid'] == $cateid){?>class="active"<?php }?>><a href="<?=site_url('production/pcate/'.$v['cateid'])?>"><?=$v['catename']?></a></li>
									<?php }?>
								</ul>
							</div>
							<!-- isotope filters end -->

						</div>
						<!-- main end -->
					</div>
				</div>

				<!-- section start -->
				<!-- ================ -->
				<div class="gray-bg section">
					<div class="container">
						<!-- portfolio items start -->
						<div class="isotope-container row grid-space-10">
							<?php foreach ($subcatedata as $k => $v) {?>
							<div class="col-sm-6 isotope-item <?=$v['parentid']?>">
								<div class="box-style-1 white-bg">
									<div class="overlay-container">
										<img src="<?=base_url($v['imgthumb'])?>" alt="">
									</div>
									<h3><?=$v['catename']?></a></h3>
									<?php if (!empty($v['subcate'])) {?>
									<p>
									<?php foreach ($v['subcate'] as $k2 => $v2) {?>
									<a href="<?=site_url('production/index/'.$v['cateid'].'/'.$v2['cateid'])?>"><?=$v2['catename']?></a>&nbsp;&nbsp;
									<?php }?>
									</p>
									<?php }?>
								</div>
							</div>
							<?php }?>
						</div>
						<!-- portfolio items end -->
					</div>
				</div>
				<!-- section end -->
			</section>
			<!-- main-container end -->

			<?php $this->load->view($cfg['tpl'].'public/footer')?>

		</div>
		<!-- page-wrapper end -->

	</body>
</html>
